package com.hxkj.domain.annotation;

import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import java.lang.annotation.*;

/**
 * Create by chenwei on 2018/7/9 13:50
 */

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
@Order(Ordered.HIGHEST_PRECEDENCE)
public @interface RequestLimit {

    // 访问次数
    int count() default 1;

    // 时间限制 单位:[分钟]
    long time() default 1;
}
